package archforce.atp.x.ssh.entity;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

/**
 * @author wx
 * @version 1.0
 * @date 2022/4/27 11:17
 */
public class PortMappingEntity implements Serializable {

    private String localhost;
    private Integer localPort;
    private String remoteHost;
    private Integer remotePort;

    public PortMappingEntity(String localhost, String remoteHost, Integer remotePort) {
        this.localhost = localhost;
        this.remoteHost = remoteHost;
        this.remotePort = remotePort;
    }

    public PortMappingEntity(String localhost, Integer localPort, String remoteHost, Integer remotePort) {
        this.localhost = localhost;
        this.localPort = localPort;
        this.remoteHost = remoteHost;
        this.remotePort = remotePort;
    }

    public String getLocalhost() {
        return localhost;
    }

    public void setLocalhost(String localhost) {
        this.localhost = localhost;
    }

    public Integer getLocalPort() {
        return localPort;
    }

    public void setLocalPort(Integer localPort) {
        this.localPort = localPort;
    }

    public String getRemoteHost() {
        return remoteHost;
    }

    public void setRemoteHost(String remoteHost) {
        this.remoteHost = remoteHost;
    }

    public Integer getRemotePort() {
        return remotePort;
    }

    public void setRemotePort(Integer remotePort) {
        this.remotePort = remotePort;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this, true);
    }
}
